{extend name="../application/public/base.html" /}
{block name="head"}{/block}
{block name="body"}
    <body>
        <div class="x-nav">
          <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" onclick="location.reload()" title="刷新">
            <i class="layui-icon layui-icon-refresh" style="line-height:30px"></i></a>
        </div>
        <div class="layui-fluid">
            <div class="layui-row layui-col-space15">
                <div class="layui-col-md12">
                    <form class="layui-form" id="signupForm" method="post">
					<div class="layui-card">
                        <div class="layui-card-body">
							<div class="layui-tab layui-tab-card" style="margin-bottom:15px;">
							  <ul class="order_table">
								<li>产品信息</li>
							  </ul>
							  <div class="layui-tab-content">
								 <div class="layui-form-item">
									<div class="layui-inline">
									  <label class="layui-form-label">产品名称</label>
									  <div class="layui-input-inline" >
										<input type="text" name="goods_name" readonly="readonly" class="layui-input" />
									  </div>
									</div>
								 </div>
								 <div class="layui-form-item">
									<div class="layui-inline">
									  <label class="layui-form-label">产品分类</label>
									  <div class="layui-input-inline">
									  		<input type="text" name="category_name" readonly="readonly" class="layui-input" />
									  </div>
									</div>
									<div class="layui-inline">
									  <label class="layui-form-label">产品子分类</label>
									  <div class="layui-input-inline">
									  		<input type="text" name="cat_name" readonly="readonly" class="layui-input" />
									  </div>
									</div>
								 </div>
								 <div class="layui-form-item">
									<div class="layui-inline">
									  <label class="layui-form-label">产品品牌</label>
									  <div class="layui-input-inline">
									  		<input type="text" name="brand_name" readonly="readonly" class="layui-input" />
									  </div>
									</div>
									<div class="layui-inline">
									  <label class="layui-form-label">内存</label>
									  <div class="layui-input-inline">
									  		<input type="text" name="memory_name" readonly="readonly" class="layui-input" />
									  </div>
									</div>
								 </div>
								 <div class="layui-form-item">
									<div class="layui-inline">
									  <label class="layui-form-label">产品型号</label>
									  <div class="layui-input-inline">
											<input type="text" name="marker" readonly="readonly" class="layui-input" />
									  </div>
									</div>
									<div class="layui-inline">
									  <label class="layui-form-label">属性</label>
									  <div class="layui-input-inline">
									  		<input type="text" name="attribute_name" readonly="readonly" class="layui-input" />
									  </div>
									</div>
								 </div>
								 <div class="layui-form-item">
									<div class="layui-inline">
									  <label class="layui-form-label">产品颜色</label>
									  <div class="layui-input-inline">
									  		<input type="text" name="colour_name" readonly="readonly" class="layui-input" />
									  </div>
									</div>
									<div class="layui-inline">
									  <label class="layui-form-label">单位</label>
									  <div class="layui-input-inline">
									  		<input type="text" name="unit" readonly="readonly" class="layui-input" />
									  </div>
									</div>
								 </div>
								 <div class="layui-form-item layui-form-text">
									<label for="desc" class="layui-form-label">采购备注</label>
									<div class="layui-input-block">
										<textarea placeholder="请输入内容" name="remarks" class="layui-textarea"></textarea>
									</div>
								</div>
							  </div>
							</div>
							<div class="layui-tab layui-tab-card" style="margin-bottom:15px;">
							  <ul class="order_table">
								<li>采购数量</li>
							  </ul>
							  <div class="layui-tab-content">
								 <div class="layui-form-item">
									  <label class="layui-form-label">采购数量</label>
									  <div class="layui-input-inline">
										  <input type="text" placeholder="请输入采购数量，如：50" lay-verify="required" name="number" id="number" onchange="ptotal(this,'buying_price','total_price')" class="layui-input" />
									  </div>
								  </div>
							  </div>
							</div>
							<div class="layui-tab layui-tab-card" style="margin-bottom:15px;">
							  <ul class="order_table">
								<li>产品进货价</li>
							  </ul>
							  <div class="layui-tab-content">
								 <div class="layui-form-item">
									<div class="layui-inline">
									  <label class="layui-form-label">进货单价</label>
									  <div class="layui-input-inline">
										<input type="text" placeholder="请输入进货单价，单位：元" lay-verify="required" name="buying_price" id="buying_price" onchange="ptotal(this,'number','total_price')" class="layui-input" />
									  </div>
									</div>
									<div class="layui-inline">
									  <label class="layui-form-label">进货总价</label>
									  <div class="layui-input-inline">
										<input type="text" readonly="readonly" name="total_price" lay-verify="required" id="total_price" class="layui-input" />
									  </div>
									</div>
								 </div>
							  </div>
							</div>
							<div class="layui-tab layui-tab-card" style="margin-bottom:15px;">
							  <ul class="order_table">
								<li>产品供应商</li>
							  </ul>
							  <div class="layui-tab-content">
								 <div class="layui-form-item">
									  <label class="layui-form-label">供应商</label>
									  <div class="layui-input-inline">
											<select name="supplier_name" lay-verify="required">
												<option value="">请选择供应商</option>
												{volist name="supplier" id="vo"}
												<option value="{$vo.supplier_name}">{$vo.supplier_name}</option>
												{/volist}
											</select>
									  </div>
								  </div>
							  </div>
							</div>
							<div class="layui-tab-content">
								<div class="layui-form-item">
								  <div  class="layui-btn" lay-filter="add" lay-submit="">增加</div>
							    </div>
							</div>
                        </div>
                    </div>
					</form>
                </div>
            </div>
        </div> 
		<script type="text/javascript" src="/static/customized/shop/addpurchase.js"></script>
    </body>
{/block}
{block name="script"}
	<script type="text/javascript" src="ADMIN_CUSTOM/js/repair/goods/purchase.js"></script> 
	<!-- 所有商品操作模版 -->
    <script type="text/html" id="all-oper">
		<div class="layui-btn" lay-event="purchase">缺货采购</div>
    </script>

    <script type="text/html" id="change-oper">
		<div class="layui-btn layui-bg-red" lay-event="cencel">取消</div>
    </script>
    <!-- 已选商品操作模版 -->
    <!-- <script id="repair_goods" type="text/html">
		<tr id="{{d.goods_id}}">
			<td>{{d.goods_id}}</td>
			<td>{{d.goods_sn}}</td>
			<td>{{d.goods_name}}</td>
			<td>{{d.category_name}}</td>
			<td>{{d.cate_name}}</td>
			<td>{{d.brand_name}}</td>
			<td>{{d.marker}}</td>
			<td>{{d.attribute_name}}</td>
			<td>{{d.colour_name}}</td>
			<td>{{d.number}}</td>
			<td>{{d.unit}}</td>
			<td>{{d.selling_price}}</td>
			<td>{{d.trade_price}}</td>
			<td>{{d.buying_price}}</td>
			<td class="td-manage">
				<div class="layui-btn layui-bg-red" lay-event="del">取消</div>
			</td>
    	</tr>
	</script> -->
{/block}